package com.fengling.contronller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController    //添上注解从一个普通类成为一个请求处理类
public class HelloController {
    @RequestMapping("/cnm666")     //添上注解处理浏览器请求路径
    public String HelloWorld() {
        System.out.println("HelloWorld~");
        return "HelloWorld~";

    }
}
